gdksurface-win32.c: Fix window menu positioning
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 12 Mar 2021 10:39:04 +0000 (18:39 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 12 Mar 2021 10:45:43 +0000 (18:45 +0800)
commite941e2be7ded88728f41cdd03acd3381e45562b0
treea0352b34b5863ed4ccbbff139abb685e47b33b32
parent28e33bc26c83db23ca6c626ee3e3e688c5594baa
gdksurface-win32.c: Fix window menu positioning

We ought to get the coordinates of where the window menu should be
displayed using gdk_win32_surface_get_root_coords(), instead of rounding
the position that we obtained with gdk_event_get_position().

Also rename items a bit in the same function, and call
gdk_event_get_event_type() for consistency with the other backends.

Fixes issue #3704.
gdk/win32/gdksurface-win32.c